import request from '@/utils/request'

/**
 * 辨识任务数据项说明分页查询
 * @param {查询条件} data
 */
export function listProRiskRectask(query) {
  return request({
    url: 'business/ProRiskRectask/list',
    method: 'get',
    params: query,
  })
}

/**
 * 新增辨识任务数据项说明
 * @param data
 */
export function addProRiskRectask(data) {
  return request({
    url: 'business/ProRiskRectask',
    method: 'post',
    data: data,
  })
}
/**
 * 修改辨识任务数据项说明
 * @param data
 */
export function updateProRiskRectask(data) {
  return request({
    url: 'business/ProRiskRectask',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取辨识任务数据项说明详情
 * @param {Id}
 */
export function getProRiskRectask(id) {
  return request({
    url: 'business/ProRiskRectask/' + id,
    method: 'get'
  })
}

/**
 * 删除辨识任务数据项说明
 * @param {主键} pid
 */
export function delProRiskRectask(pid) {
  return request({
    url: 'business/ProRiskRectask/delete/' + pid,
    method: 'delete'
  })
}
